using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace radiotool
{
	public partial class Display : Form
	{
		public Display(string[,] InfoArray)
		{
			InitializeComponent();

			label1.Text=InfoArray[0,0];
			label2.Text=InfoArray[1,0];
			label3.Text=InfoArray[2,0];

			label4.Text=InfoArray[0,1];
			label5.Text=InfoArray[1,1];
			label6.Text=InfoArray[2,1];

			this.Text = "Das lief auf Bremen4 gegen "+DateTime.Now.ToShortTimeString();

		}

		private void Display_Load(object sender, EventArgs e)
		{
			this.Top = Screen.PrimaryScreen.WorkingArea.Height - this.Height;
			this.Left = Screen.PrimaryScreen.WorkingArea.Width - this.Width;
		}

		private void timer_Tick(object sender, EventArgs e)
		{
			for (int i = 0; i < 100; i++)
			{
				this.Top = this.Top + 1;
				this.Opacity = this.Opacity - 0.01;
				//Console.WriteLine(this.Opacity.ToString());
				this.Refresh();
				this.Update();
				System.Threading.Thread.Sleep(10);
			}
			this.Close();
		}

		private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			System.Diagnostics.Process.Start("http://de.youtube.com/results?search_query=" + label1.Text + "+" + label4.Text + "&search_type=");
		}

		private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			System.Diagnostics.Process.Start("http://de.youtube.com/results?search_query=" + label2.Text + "+" + label5.Text + "&search_type=");
		}

		private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			System.Diagnostics.Process.Start("http://de.youtube.com/results?search_query=" + label3.Text + "+" + label6.Text + "&search_type=");
		}
		
	}
}